package com.sugar.psych.assessment.module.business.service.userleavemessage;

import java.util.*;
import javax.validation.*;
import com.sugar.psych.assessment.module.business.controller.admin.userleavemessage.vo.*;
import com.sugar.psych.assessment.module.business.controller.app.userleavemessage.vo.AppUserLeaveMessagePageReqVO;
import com.sugar.psych.assessment.module.business.controller.app.userleavemessage.vo.AppUserLeaveMessageRespVO;
import com.sugar.psych.assessment.module.business.controller.app.userleavemessage.vo.CreateLeaveMsgReqVO;
import com.sugar.psych.assessment.module.business.dal.dataobject.userleavemessage.UserLeaveMessageDO;
import com.sugar.psych.assessment.framework.common.pojo.PageResult;
import com.sugar.psych.assessment.framework.common.pojo.PageParam;

/**
 * 用户留言 Service 接口
 *
 * @author Ysugar
 */
public interface UserLeaveMessageService {

    /**
     * 创建用户留言
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createUserLeaveMessage(@Valid UserLeaveMessageSaveReqVO createReqVO);

    /**
     * 更新用户留言
     *
     * @param updateReqVO 更新信息
     */
    void updateUserLeaveMessage(@Valid UserLeaveMessageSaveReqVO updateReqVO);

    /**
     * 删除用户留言
     *
     * @param id 编号
     */
    void deleteUserLeaveMessage(Long id);

    /**
    * 批量删除用户留言
    *
    * @param ids 编号
    */
    void deleteUserLeaveMessageListByIds(List<Long> ids);

    /**
     * 获得用户留言
     *
     * @param id 编号
     * @return 用户留言
     */
    UserLeaveMessageDO getUserLeaveMessage(Long id);

    /**
     * 获得用户留言分页
     *
     * @param pageReqVO 分页查询
     * @return 用户留言分页
     */
    PageResult<UserLeaveMessageRespVO> getUserLeaveMessagePage(UserLeaveMessagePageReqVO pageReqVO);

    Long appCreateUserLeaveMessage(CreateLeaveMsgReqVO createReqVO, Long loginUserId);

    void appDeleteUserLeaveMessage(Long id, Long loginUserId);

    PageResult<AppUserLeaveMessageRespVO> appGetUserLeaveMessagePage(PageParam pageParam, Long loginUserId);

    void userLeaveMessageLiked(Long id, Long loginUserId);

    PageResult<AppUserLeaveMessageRespVO> selectUserLeaveMessagePage(AppUserLeaveMessagePageReqVO pageParam, Long loginUserId);
}